package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * ImcUnityLoginRole entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "imc_unity_login_role", catalog = "imcdbserver")
public class ImcUnityLoginRole implements java.io.Serializable {

	// Fields

	private ImcUnityLoginRoleId id;

	// Constructors

	/** default constructor */
	public ImcUnityLoginRole() {
	}

	/** full constructor */
	public ImcUnityLoginRole(ImcUnityLoginRoleId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "unityId", column = @Column(name = "unity_id")),
			@AttributeOverride(name = "uid", column = @Column(name = "uid")),
			@AttributeOverride(name = "unityName", column = @Column(name = "unity_name", length = 20)),
			@AttributeOverride(name = "unityPass", column = @Column(name = "unity_pass", length = 20)),
			@AttributeOverride(name = "unityMailCheckif", column = @Column(name = "unity_mail_checkif")),
			@AttributeOverride(name = "unityMailCount", column = @Column(name = "unity_mail_count")),
			@AttributeOverride(name = "unityIsUpdate", column = @Column(name = "unity_is_update")) })
	public ImcUnityLoginRoleId getId() {
		return this.id;
	}

	public void setId(ImcUnityLoginRoleId id) {
		this.id = id;
	}

}